package com.huawei.appmarket.service.appmgr.view.fragment;

import android.os.Bundle;
import android.view.ViewGroup;
import android.widget.HeaderViewListAdapter;
import android.widget.LinearLayout;
import android.widget.ListAdapter;
import com.huawei.appgallery.foundation.service.common.protocol.AppListFragmentProtocol;
import com.huawei.appgallery.foundation.ui.framework.cardkit.widget.CardListAdapter;
import com.huawei.appgallery.foundation.ui.framework.fragment.AppListFragment;
import o.Logger;
import o.ContentManager;
import o.ll;

public abstract class AppManagerFragment<T extends AppListFragmentProtocol> extends AppListFragment<T> {
    protected ViewGroup ˊ;
    protected LinearLayout ॱॱ;
    protected ll ᐝ = ll.ˏ(ContentManager.getInstant().getContext());

    protected abstract void ˊʻ();

    protected abstract void י();

    public void ˏ(Bundle bundle) {
        ॱˋ(true);
        ᐝॱ(false);
        super.ˏ(bundle);
    }

    public void ٴ() {
        if (this.ͺˎ == null) {
            Logger.ˋ("AppListFragment", "notifyDataSetChanged listView null");
            return;
        }
        CardListAdapter cardListAdapter;
        ListAdapter adapter = this.ͺˎ.getAdapter();
        if (adapter instanceof HeaderViewListAdapter) {
            adapter = ((HeaderViewListAdapter) adapter).getWrappedAdapter();
            cardListAdapter = adapter instanceof CardListAdapter ? (CardListAdapter) adapter : null;
        } else {
            cardListAdapter = (CardListAdapter) adapter;
        }
        if (cardListAdapter != null) {
            cardListAdapter.notifyDataSetChanged();
        }
    }

    public void ʻ(int i) {
    }
}
